
import 'package:flutter_ahj_app/base/basewidget/model/BaseModel.dart';
import 'package:rxdart/rxdart.dart';

class RecommendModel extends BaseModel{

  BehaviorSubject _dataSub = BehaviorSubject();

  Stream get dataStream => _dataSub.stream;

  getData(){

    _dataSub.add("数据");
  }
  @override
  void dispose() {
    // TODO: implement dispose
    super.dispose();

    if(_dataSub != null){
      _dataSub.close();
    }
    
  }

}